<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
        <script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
        <script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
        <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet">
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
        <script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
        <script>
            $(function() {
                $(".status").click(function() {
                    $("input[name=pid]").val($(this).attr("pid"));
                    var uid = $(this).attr("pid");
                    var status = $(this).attr("status");
                    $("#status" + status).attr("checked", true);
                    layui.use(['form'], function() {
                        var form = layui.form;
                        form.render();
                    });
                    $("input[name=uid]").val(uid);
                    $.get("index.php?m=user_member&c=lockinfo&uid=" + uid, function(msg) {
                        $("#alertcontent").val($.trim(msg));
                        status_div('锁定用户', '350', '240');
                    });
                });
                $(".check").click(function() {
                    $("input[name=pid]").val($(this).attr("pid"));
                    var uid = $(this).attr("pid");
                    var status = $(this).attr("status");
                    $("#state" + status).attr("checked", true);
                    layui.use(['form'], function() {
                        var form = layui.form;
                        form.render();
                    });
                    $("input[name=uid]").val(uid);
                    $.get("index.php?m=user_member&c=lockinfo&uid=" + uid, function(msg) {
                        $("#statusbody").val($.trim(msg));
                        $.layer({
                            type: 1,
                            title: '个人用户审核',
                            closeBtn: [0, true],
                            border: [10, 0.3, '#000', true],
                            area: ['390px', '240px'],
                            page: {
                                dom: "#info_div"
                            }
                        });
                    });
                });
            });
        </script>
        <link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
        <link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />

        <title>后台管理</title>
    </head>

    <body class="body_ifm">
        {yun:}include file="$adminstyle/member_send_email.htm"{/yun}
        <div id="status_div" style="display:none; width: 350px; ">
            <div class="" style=" margin-top:10px; ">
                <form class="layui-form" action="index.php?m=user_member&c=status" target="supportiframe" method="post" id="formstatus">
                    <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                        <tr>
                            <th width="80">锁定操作：</th>
                            <td align="left">
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <div class="admin_examine_right">
                                            <input name="status" id="status1" value="1" title="正常" type="radio" />
                                            <input name="status" id="status2" value="2" title="锁定" type="radio" />
                                        </div>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th>锁定说明：</th>
                            <td align="left"> <textarea id="alertcontent" name="lock_info" class="admin_explain_textarea"></textarea> </td>
                        </tr>
                        <tr>
                            <td colspan='2' align="center"><input type="submit" value='确认' class="admin_examine_bth">
                                <input type="button" id="zxxCancelBtn" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'></td>
                        </tr>
                        <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                        <input name="uid" value="0" type="hidden">
                    </table>
                </form>
            </div>
        </div>
        <div id="info_div" style="display:none; width: 390px; ">
            <div class="" style=" margin-top:10px; ">
                <form class="layui-form" action="index.php?m=user_member&c=ckstatus" target="supportiframe" method="post" id="formstatus">
                    <table cellspacing='1' cellpadding='1' class="admin_examine_table">
                        <tr>
                            <th width="80">审核操作：</th>
                            <td align="left">
                                <div class="layui-form-item">
                                    <div class="layui-input-block">
                                        <input name="status" id="state0" value="0" title="未审核" type="radio" />
                                        <input name="status" id="state1" value="1" title="正常" type="radio" />
                                        <input name="status" id="state3" value="3" title="未通过" type="radio" />
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <th>审核说明：</th>
                            <td align="left"> <textarea id="statusbody" name="statusbody" class="admin_explain_textarea"></textarea> </td>
                        </tr>
                        <tr>
                            <td colspan='2' align="center">
                                <input type="submit" value='确认' class="admin_examine_bth">
                                <input type="button" id="zxxCancelBtn" onClick="layer.closeAll();" class="admin_examine_bth_qx" value='取消'>
                            </td>
                        </tr>
                        <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
                        <input name="uid" value="0" type="hidden">
                    </table>
                </form>
            </div>
        </div>
        <div class="infoboxp">
        	
        	<div class="tabs_info">
                <ul>
                    <li {yun:}if !$smarty.get.c{/yun}class="curr" {yun:}/if{/yun}>
                        <a href="index.php?m=user_member">全部个人</a>
                    </li>
                    <li {yun:}if $smarty.get.c{/yun}class="curr" {yun:}/if{/yun}>
                        <a href="index.php?m=user_member&c=writtenOffLog">解绑记录</a>
                    </li>
					<li>
                        <a href="index.php?m=user_member&c=member_log">会员日志</a>
                    </li>
                </ul>
            </div>
        	
            <div class="admin_new_tip">
                <a href="javascript:;" class="admin_new_tip_close"></a>
                <a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
                <div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
                <div class="admin_new_tip_list_cont">
                    <div class="admin_new_tip_list">该页面展示了网站所有的个人会员信息，可对会员进行编辑修改操作。</div>
                    <div class="admin_new_tip_list">可输入名称关键字进行搜索，也可进行详细的高级搜索。</div>
                </div>
            </div>
            <div class="clear"></div>
            <div class="admin_new_search_box">
                <form action="index.php" name="myform" method="get">
                    <input name="m" value="user_member" type="hidden" />
                    <div class="admin_new_search_name">搜索类型：</div>
                    <div class="admin_Filter_text formselect" did='dkeytype'>
                        <input type="button" {yun:}if $get_type.keytype=='' ||$get_type.keytype=='1' {/yun} value="用户名" {yun:}elseif $get_type.keytype=='2' {/yun} value="姓名" {yun:}elseif $get_type.keytype=='3' {/yun} value="手机号" {yun:}elseif $get_type.keytype=='4' {/yun} value="EMAIL" {yun:}elseif $get_type.keytype=='5' {/yun} value="用户ID" {yun:}/if{/yun} class="admin_Filter_but" id="bkeytype">

                        <input type="hidden" name="type" id="keytype" {yun:}if $get_type.keytype=='' ||$get_type.keytype=='1' {/yun} value="1" {yun:}elseif $get_type.keytype=='2' {/yun} value="2" {yun:}elseif $get_type.keytype=='3' {/yun} value="3" {yun:}elseif $get_type.keytype=='4' {/yun} value="4" {yun:}elseif $get_type.keytype=='5' {/yun} value="5" {yun:}/if{/yun}/>
                        <div class="admin_Filter_text_box" style="display:none" id="dkeytype">
                            <ul>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('1','keytype','用户名')">用户名</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('2','keytype','姓名')">姓名</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('3','keytype','手机号')">手机号</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('4','keytype','EMAIL')">EMAIL</a>
                                </li>
                                <li>
                                    <a href="javascript:void(0)" onClick="formselect('5','keytype','用户ID')">用户ID</a>
                                </li>
                            </ul>
                        </div>
                    </div>
                    <input type="text" value="" placeholder="请输入你要搜索的关键字" name='keyword' class="admin_new_text">
                    <input type="submit" value="搜索" name='search' class="admin_new_bth">
                    <a href="javascript:void(0)" onclick="$('.admin_screenlist_box').toggle();" class="admin_new_search_gj">高级搜索</a>
                    <a href="index.php?m=user_member&c=add" class="admin_new_cz_tj">+ 添加会员</a>
                </form>
                {yun:}include file="admin/admin_search.htm"{/yun}
            </div>
            <div class="clear"></div>

			<div class="admin_statistics">
            数据统计：
				<em class="admin_statistics_s">总数：<span class="ajaxuserall">0</span></em>
				<em class="admin_statistics_s">未审核：<span class="userStatusNum1">0</span></em>
				<em class="admin_statistics_s">未通过：<span class="userStatusNum2">0</span></em>
				<em class="admin_statistics_s">已锁定：<span class="userStatusNum3">0</span></em>
				搜索结果：<span>{yun:}$total{/yun}</span>；
			</div>
			
			<div class="clear"></div>

            <div class="table-list">
                <div class="admin_table_border">
                    <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
                    <form action="index.php" target="supportiframe" name="myform" method="get" id='myform'>
                        <input name="m" value="user_member" type="hidden" />
                        <input name="c" value="del" type="hidden" />
                        <table width="100%">
                            <thead>
                                <tr class="admin_table_top">
                                    <th style="width:20px;">
										<label for="chkall"><input type="checkbox" id='chkAll'  onclick='CheckAll(this.form)'/></label>
									</th>
                                    <th align="left"> 
										{yun:}if $smarty.get.t=="uid" && $smarty.get.order=="asc"{/yun}
											<a href="index.php?m=user_member&order=desc&t=uid">用户ID<img src="images/sanj.jpg" /></a>
										{yun:}else{/yun}
											<a href="index.php?m=user_member&order=asc&t=uid">用户ID<img src="images/sanj2.jpg" /></a> 
										{yun:}/if{/yun}
									</th>
                                    <th align="left">姓名/用户名</th>
                                    <th align="left">手机号/EMAIL</th>
									<th align="left"> 
										{yun:}if $smarty.get.t=="reg_date" && $smarty.get.order=="asc"{/yun}
											<a href="index.php?m=user_member&order=desc&t=reg_date">注册时间<img src="images/sanj.jpg" /></a> 
										{yun:}else{/yun}
											<a href="index.php?m=user_member&order=asc&t=reg_date">注册时间 <img src="images/sanj2.jpg" /></a> 
										{yun:}/if{/yun}
									</th>
                                    <th> 
										{yun:}if $smarty.get.t=="login_date" && $smarty.get.order=="asc"{/yun}
											<a href="index.php?m=user_member&order=desc&t=login_date">最近登录时间<img src="images/sanj.jpg" /></a> 
										{yun:}else{/yun}
											<a href="index.php?m=user_member&order=asc&t=login_date">最近登录时间 <img src="images/sanj2.jpg" /></a> 
										{yun:}/if{/yun}
									</th>
									<th>简历</th>
                                    <th>来源</th>
                                    <th>站点</th>
                                    <th>审核状态</th>
									<th >操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {yun:}foreach item=v key=key from=$userrows{/yun}
                                <tr {yun:}if ($key+1)%2=='0' {/yun}class="admin_com_td_bg" {yun:}/if{/yun} id="list{yun:}$v.uid{/yun}">
                                    <td width="20"><input type="checkbox" value="{yun:}$v.uid{/yun}" class="check_all" name='del[]' onclick='unselectall()' rel="del_chk" email="{yun:}$v.email{/yun}" moblie="{yun:}$v.telphone{/yun}" style="margin-left:5px;;" /></td>

                                    <td align="left" class="td1" style="width:60px;">{yun:}$v.uid{/yun}</td>
                                    
									<td align="left">
                                        {yun:}$v.name{/yun}
                                        <div class="mt5">
                                            <a href="index.php?m=user_member&c=Imitate&uid={yun:}$v.uid{/yun}" target="_blank" class="admin_cz_sc">{yun:}$v.username{/yun}</a> 
											{yun:}if $v.status==2{/yun}<img src="../config/ajax_img/suo.png" alt="已锁定" width="15">{yun:}/if{/yun} 
										</div>
                                    </td>
                                    <td align="left">
                                        <div>
                                            {yun:}if $v.moblie{/yun}
												<span class="admin_new_sj">{yun:}$v.moblie{/yun}</span> 
												{yun:}if $moblie_promiss{/yun}
													<a onClick="send_moblie('{yun:}$v.moblie{/yun}');" style="color:green; cursor:pointer;">发信息</a> 
												{yun:}/if{/yun} 
											{yun:}/if{/yun}
                                        </div>
                                        <div>
                                            {yun:}if $v.email{/yun}
												<span class="admin_new_yx">{yun:}$v.email{/yun}</span> 
												{yun:}if $email_promiss{/yun}
													<a onClick="send_email('{yun:}$v.email{/yun}');" style="color:green; cursor:pointer;">发邮件</a>
												{yun:}/if{/yun}
											{yun:}/if{/yun}
                                        </div>
                                    </td>
                                    <td class="td" align="left">{yun:}$v.reg_date|date_format:"%Y-%m-%d"{/yun}</td>
									
									<td align="center">
										{yun:}if $v.login_date!=""{/yun}
											{yun:}$v.login_date|date_format:"%Y-%m-%d"{/yun} 
										{yun:}else{/yun}
											<font color="#FF0000">从未登录</font>
										{yun:}/if{/yun}
									</td>
                                    
									<td align="center">
                                    	{yun:}if $v.resumenum=='1'{/yun}
											<div class="mt5">
												<a href="{yun:}url m=resume c=show id='`$v.resumeid`' look=admin{/yun}" class="admin_cz_sc" target="_blank">预览简历</a>
											</div>
										{yun:}else{/yun}
											<a href="index.php?m=admin_resume&c=addresume&uid={yun:}$v.uid{/yun}" class="admin_cz_sc">添加简历</a>
										{yun:}/if{/yun}
                                    </td>
                                    <td align="center">{yun:}$source[$v.source]{/yun}</td>
                                    <td align="center">
                                        <div>{yun:}$Dname[$v.did]{/yun}</div>
                                        <div class="mt5">
                                            <a href="javascript:;" onclick="checksite('{yun:}$v.username{/yun}','{yun:}$v.uid{/yun}','index.php?m=user_member&c=checksitedid');" class="admin_cz_sc">重新分配</a>
                                        </div>
                                    </td>

                                    <td align="center">{yun:}if $v.status=='1'{/yun}<span class="admin_com_Audited">已审核</span>{yun:}elseif $v.status=='2'{/yun}<span class="admin_com_Lock">已锁定</span>{yun:}elseif $v.status=='3'{/yun}<span class="admin_com_tg">未通过</span>{yun:}else{/yun}<span class="admin_com_noAudited">未审核</span>{yun:}/if{/yun}</td>
                                     
                                    <td width="180">
										<a href="javascript:;" class="admin_new_c_bth admin_new_c_bthsh check" pid="{yun:}$v.uid{/yun}" status="{yun:}$v.status{/yun}">审核</a>
										<a href="javascript:;" class="admin_new_c_bth admin_new_c_bthsd status" pid="{yun:}$v.uid{/yun}" status="{yun:}$v.status{/yun}">锁定</a>
										<a href="index.php?m=user_member&c=member_log&uid={yun:}$v.uid{/yun}" class="admin_new_c_bth admin_new_c_rz">日志</a>
 										<a href="index.php?m=user_member&c=edit&id={yun:}$v.uid{/yun}" class="admin_new_c_bth admin_n_sc mt5">修改</a>
										<a href="javascript:void(0);" onClick="resetpw('{yun:}$v.username{/yun}','{yun:}$v.uid{/yun}');" class="admin_new_c_bth admin_new_c_mmcz mt5">密码</a>
										<a href="javascript:void(0)" onClick="layer_del('确定要删除？', 'index.php?m=user_member&c=del&del={yun:}$v.uid{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc">删除</a>
                                         
                                    </td>
                                </tr>
                                {yun:}/foreach{/yun}
                                <tr>
                                    <td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></td>
                                    <td colspan="12"><label for="chkAll2">全选</label> &nbsp;
                                        <input class="admin_button" type="button" name="delsub" value="删除所选" onclick="return really('del[]')" /> {yun:}if $email_promiss{/yun}
                                        <input class="admin_button" type="button" value="发邮件" onclick="return confirm_email('确定发邮件吗？','email_div')" /> {yun:}/if{/yun} {yun:}if $moblie_promiss{/yun}
                                        <input class="admin_button" type="button" value="发信息" onclick="return confirm_email('确定发信息吗？','moblie_div')" /> {yun:}/if{/yun}
                                        <input class="admin_button" type="button" name="delsub" value="批量选择分站" onClick="checksiteall('index.php?m=user_member&c=checksitedid');" />
                                    </td>
								</tr>	
								{yun:}if $total > $config.sy_listnum {/yun}
									<tr>
										{yun:}if $pagenum==1{/yun}
											<td colspan="3"> 从 1 到 {yun:}$config.sy_listnum {/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}else if $pagenum > 1 && $pagenum < $pages{/yun}
											<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$pagenum * $config.sy_listnum{/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}else if $pagenum == $pages{/yun}
											<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$total{/yun} ，总共 {yun:}$total{/yun} 条</td>
										{yun:}/if{/yun}
										<td colspan="10" class="digg">{yun:}$pagenav{/yun}</td>
									</tr>
								{yun:}/if{/yun}
                            </tbody>
                        </table>
                        <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
                    </form>
                </div>
            </div>
        </div>
        <script type="text/javascript">
            layui.use(['layer', 'form'], function() {
                var layer = layui.layer,
                    form = layui.form,
                    $ = layui.$;
            });
			$(document).ready(function(){
				$.get("index.php?m=user_member&c=userNum", function(data) {
					var datas = eval('(' + data + ')');
					if(datas.userAllNum) {
						$('.ajaxuserall').html(datas.userAllNum);
					}
					if(datas.userStatusNum1) {
						$('.userStatusNum1').html(datas.userStatusNum1);
					}
					if(datas.userStatusNum2) {
						$('.userStatusNum2').html(datas.userStatusNum2);
					}
					if(datas.userStatusNum3) {
						$('.userStatusNum3').html(datas.userStatusNum3);
					}
				});
			});
        </script>
        {yun:}include file="$adminstyle/checkdomain.htm"{/yun}
    </body>

</html>